Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor tests for stripProjectPackages #24

Closed
wants to merge 2 commits into from

Conversation

levinalex
Copy link

This refactors the tests for Config.ProjectPackages to use an array of test cases.

I've added tests for ProjectPackages with multiple wildcards.

It does not change existing behaviour.


{"example.com/b/foo/bar.go", "foo/bar.go"},
{"example.com/b/foo.go", "foo.go"},

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if these test cases should be included (they would fail right now)

{"example.com/c/foo/bar.go", "foo/bar.go"}, 
{"example.com/c/foo/bar/baz.go", "foo/bar/baz.go"},

@kattrali
Copy link
Contributor

Hi @levinalex, Thank you for the contribution! I just merged #25, which fixes #23 and appears to incorporate your test improvements. Cheers!

@kattrali kattrali closed this Nov 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants